home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 41 / Issue 41.iso / pc / PCSoftware / Erol Small Store Edition / Setup.exe / %MAINDIR% / erol.js < prev    next >
Encoding:
JavaScript  |  2000-12-03  |  1.6 KB  |  100 lines

  1. //Version 1.0
  2.  
  3. function show(a,b,c){;};
  4.  
  5. function omOverI(image1){
  6. isImg=true
  7.     if(locked==false){
  8.         image1.style.filter="Invert()"
  9.         locked=false
  10.     }
  11. }
  12.  
  13. function omOutI(image1){
  14. isImg=false
  15.     if(locked==false){
  16.         if(locked==false)image1.style.filter = ""
  17.     }
  18. }
  19. function omOverT(image1){
  20.     if(locked==false){
  21.     image1.style.backgroundColor="black"
  22.     image1.style.color="white"
  23.     locked=false
  24.     }
  25. }
  26.  
  27. function omOutT(image1){
  28. if(locked==false){
  29.     image1.style.backgroundColor=""
  30.     image1.style.color=""
  31. }
  32. }
  33.  
  34. function omOverF(image1){
  35. if(locked==false){
  36.         image1.style.filter="Invert()"
  37.         locked=false
  38.     }
  39. }
  40.  
  41. function omOutF(image1){
  42.     if(locked==false){
  43.         image1.style.filter = ""
  44.     }
  45. }
  46.  
  47. function oClick(image1){
  48.     if(image1==obj){
  49.         if(obj!=null&&window.event.shiftKey==false){
  50.             obj.style.filter=''
  51.             obj.style.backgroundColor=""
  52.             obj.style.color=""
  53.             locked=false
  54.             obj=null
  55.         }
  56.     }else{
  57.         if(locked==true){
  58.             if(obj.style.filter!=""){
  59.                 obj.style.filter=""
  60.             }else{
  61.                 obj.style.backgroundColor=""
  62.                 obj.style.color=""
  63.             }
  64.             if(isImg==true){
  65.                 image1.style.filter="Invert()"
  66.             }else{
  67.                 image1.style.backgroundColor="black"
  68.                 image1.style.color="white"        
  69.             }
  70.         }
  71.             locked=true
  72.             obj=image1
  73.             window.status='#'+image1.id
  74.     }
  75. }
  76.  
  77. function clr(){
  78.         if(obj!=null){
  79.             obj.style.filter=''
  80.             obj.style.backgroundColor=""
  81.             obj.style.color=""
  82.             locked=false
  83.             obj=null
  84.         }
  85. }
  86.  
  87. function selObj(image1){
  88.         if(locked==false){
  89.             window.status='#'+image1
  90.         }else{
  91.             window.status='@'
  92.         }
  93. }
  94.  
  95. var isImg=false
  96. var obj=null
  97. var locked=false
  98.  
  99.  
  100.